package com.spade.sonsumer;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.spade.consumer.ConsumerService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author quanlong.chan
 * @Title: DemoConsumer
 * @Description:
 * @date 2019/8/1 11:35
 */
public class DemoConsumer extends BaseTest {

    @Autowired
    private ConsumerService consumerService;

    @Test
    @HystrixCommand
    public void test() {

        String hahaha = consumerService.sayHello("boom");

        System.out.println(hahaha);
    }
}
